<template>
<div>
  <div class="imgIntroDiv" v-for="item in goodsActiveItem" :key="item.productId" @click="toGoodsActive(item.link)">
    <img :src="item.url">
  </div>
</div>
</template>

<script>
  export default {
    props: {
      goodsActiveItem: { //图片地址
        type: Array,
      },
    },
    methods: {
      toGoodsActive (link) {
        const url = '/pages/goods-active/main?link=' + link;
        wx.navigateTo({ url })
      },
    }
  }
</script>

<style scoped>
.imgIntroDiv{
  width: 100%;
  height: 300rpx;
  margin-top: 20rpx;
}
.imgIntro img{
  width: 100%;
  height: 100%;
  display: block;
}
</style>